package com.bionic.banking.core.enums;

public enum Gender {

    male("m"), female("f");
    private final String title;

    private Gender(String t) {
        title = t;
    }

    public String toString() {
        return title;
    }

    public static Gender parse(String name) {
        return EnumUtil.getEnumFromString(Gender.class, name);
    }

    public static Gender parse(Boolean b) {
        return !b ? Gender.male : Gender.female;
    }
}
